﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mangosoft.DiceCopy.Presentation.ServiceAgents.ViewModels;

namespace Mangosoft.DiceCopy.Presentation.ServiceAgents.Agents {
    public class AdvertisingServiceAgent {
        public List<VMAdvertising> GetAllAdvertisings() {
            var ads = new List<VMAdvertising>();

            int j = 1;
            for (int i = 1; i <= 30; i++) {
                if (i % 5 == 0) j++;                   
                ads.Add(new VMAdvertising{Text = "ad" + i.ToString(), BlockCode = j, NavigateUrl = "http://www.sohu.com", LastUpdated = DateTime.Now });
            }

            return ads;
        }
    }
}
